package compiler.IR;

import java.util.HashSet;

import compiler.PrettyPrinter;
import compiler.Exceptions.CodeGenException;
import compiler.Exceptions.TypeCheckerException;

public class MJPrint extends MJStatement {
	
	private MJExpression ea;

	public MJPrint(MJExpression ea) {
		this.ea = ea;
	}
	
	public MJExpression getParameter(){
		return ea;
	}

	public void prettyPrint(PrettyPrinter prepri) {
		prepri.print("System.out.print(");
		this.ea.prettyPrint(prepri);
		prepri.print(");");
	}
	
}
